package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import static io.swagger.v3.oas.annotations.media.Schema.*;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "更新权限 DTO")
public class UpdatePermissionDTO extends AddPermissionDTO {
    @NotNull
    @Schema(description = "权限 ID", requiredMode = RequiredMode.REQUIRED)
    private Long id;
}
